#include"book.h"
#include<iomanip>
book::book(string name,string autor,string press,double price,int number )
{
    m_name = name;
    m_autor = autor;
    m_press = press;
    m_price = price;
    m_number = number;
}
string book::getBookName()
{
    return m_name;
}

ostream& operator<<(ostream& out,book & b)
{
    out<<left<<setw(20)<<b.m_name<<left<<setw(20)<<b.m_autor<<left
    <<setw(20)<<b.m_press<<left<<setw(10)<<b.m_price<<left<<setw(5)
    <<b.m_number;
    return out;
}